import React, { Component } from 'react'
import Son from './Son'

export default class Father extends Component {
    state = {
        count: null
    }
    fn = (count) => {
        this.setState({
            count
        })
    }
    render() {
        const { count } = this.state
        return (
            <div>
                Father  -- { count }
                <Son fn = { this.fn }/>
            </div>
        )
    }
}
